Moloni\Controllers\Documents C

Total Complexity 118
Dependencies 17
Dependents 1
Total lines 1,110
Lines of code 505
Logical lines of code 305
Comment lines 347
Methods 35
Properties 41

Methods 35

Method Rating Maintainability Complexity Lines of code
setDelivery()
A
43 13 45
associateDocuments()
A
45 12 43
setExchangeRate()
A
53 8 21
createDocument()
A
47 7 33
setPaymentMethod()
S
51 7 25
mapPropsToValues()
S
45 5 40
closeDocument()
S
46 5 38
setFiscalData()
S
50 5 31
setNotes()
S
58 6 15
setProducts()
S
56 5 17
setShipping()
S
58 5 14
setDocumentType()
S
57 4 18
setFees()
S
58 4 14
setSendEmail()
S
60 3 14
setDocumentStatus()
S
60 3 14
setDocumentSetId()
S
67 3 7
init()
S
60 1 21
setCustomer()
S
66 2 8
shouldAddShippingInformation()
S
71 2 6
setCae()
S
67 2 8
setShippingInformation()
S
67 2 8
setDates()
S
73 1 5
setYourReference()
S
76 1 4
__clone()
S
70 1 7
getDocumentExchangeTotal()
S
82 1 3
getDocumentProducts()
S
80 1 3
getDocumentTotal()
S
82 1 3
getDocumentId()
S
82 1 3
saveRecord()
S
76 1 4
saveLog()
S
63 1 10
addAssociatedDocument()
S
67 1 8
shouldAddPayment()
S
80 1 3
shouldCloseDocument()
S
80 1 3
shouldSendEmail()
S
80 1 3
__construct()
S
71 1 6